export interface HallItemData {
    id: string;
    type: string;
    title: string;
    author: string;
    description: string;
    image: string;
    link: string;
}

export interface HallCategory {
    id: string;
    name: string;
}

export interface HallDataStructure {
    items: HallItemData[];
    categories: HallCategory[];
}

class HallData {
    private static items: HallItemData[] = [];
    private static categories: HallCategory[] = [];

    static loadData(data: HallDataStructure): void {
        this.items = data.items;
        this.categories = data.categories;
    }

    static getItems(): HallItemData[] {
        return this.items;
    }

    static getCategories(): HallCategory[] {
        return this.categories;
    }

    static getImagePath(imageName: string): string {
        return `images/${imageName}.jpg`;
    }
}

export default HallData;
